<%@ Page Language="C#" MasterPageFile="~/Site.master" Theme="Default" EnableTheming="true" 
    AutoEventWireup="true" CodeFile="Configuration.aspx.cs" Inherits="myConfiguration" 
    Title="Dr. Yurttas' Office Library &mdash; Site Configuration" %>
<asp:Content ID="ContentAdmin" ContentPlaceHolderID="MasterContentAdmin" Runat="Server">
    <asp:LoginView ID="LoginViewAdmin" runat="server">
        <RoleGroups>
            <asp:RoleGroup Roles="admin">
                <ContentTemplate>
                    <asp:Panel ID="ChangeEmail" runat="server" Width="400px">
                        <table cellpadding="0" cellspacing="6">
                            <tr>
                                <td colspan="2">
                                    <span style="font-size: 1.8em;">Mail Settings: </span><br /><br />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label1" Text="Network Host" runat="server" Font-Size="0.8em">
                                    </asp:Label><span style="color: #0000FF;">**</span>
                                </td>
                                <td style="border-bottom: 1px dotted #000000;">
                                    <asp:Label ID="NetworkHost" runat="server" Font-Size="0.8em"></asp:Label>&nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label2" Text="Network User Name" runat="server" Font-Size="0.8em">
                                    </asp:Label><span style="color: #0000FF;">**</span>
                                </td>
                                <td style="border-bottom: 1px dotted #000000;">
                                    <asp:Label ID="NetworkUserName" runat="server" Font-Size="0.8em">
                                    </asp:Label>&nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label3" Text="Password Protected" runat="server" Font-Size="0.8em">
                                    </asp:Label>
                                </td>
                                <td style="border-bottom: 1px dotted #000000;">
                                    <asp:Label ID="NetworkPassword" runat="server" Font-Size="0.8em">
                                    </asp:Label>&nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label4" Text="Network Port" runat="server" Font-Size="0.8em">
                                    </asp:Label><span style="color: #0000FF;">**</span>
                                </td>
                                <td style="border-bottom: 1px dotted #000000;">
                                    <asp:Label ID="NetworkPort" runat="server" Font-Size="0.8em">
                                    </asp:Label>&nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label5" Text="Admin Email" runat="server" Font-Size="0.8em">
                                    </asp:Label><span style="color: #0000FF;">**</span>
                                </td>
                                <td style="border-bottom: 1px dotted #000000;">
                                    <asp:Label ID="AdminEmail" runat="server" Font-Size="0.8em">
                                    </asp:Label><span style="color: #FF0000;">*</span>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                <div style="float:right; font-size: x-small; color: #FF0000; ">
                                    * Not related to your membership email.
                                </div>
                                <div style="clear:both; font-size: x-small; color: #0000FF; ">
                                    ** These settings can only be changed by editing the Web.config file directly.
                                </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label6" Text="Send confirmation email to administrator 
                                        when a book is requested?" runat="server" Font-Size="0.8em"></asp:Label>
                                </td>
                                <td>
                                    <asp:CheckBox ID="ConfirmCheck" runat="server" Font-Size="0.8em"></asp:CheckBox>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <div style="float: right;">
                                        <asp:Button runat="server" ID="updateButton" Text="Save Settings" 
                                            onClick="updateButton_Click" Width="121px" />
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </ContentTemplate>
            </asp:RoleGroup>
        </RoleGroups>
    </asp:LoginView>                       
</asp:Content>
<asp:Content ID="ContentUser" ContentPlaceHolderID="MasterContentUser" Runat="Server">
    <asp:LoginView ID="LoginViewUser" runat="server">
        <RoleGroups>
            <asp:RoleGroup Roles="user">
                <ContentTemplate>
                You shouldn't be here.
                </ContentTemplate>
            </asp:RoleGroup>
        </RoleGroups>
    </asp:LoginView>                       
</asp:Content>
<asp:Content ID="ContentAnonymous" ContentPlaceHolderID="MasterContentAnonymous" Runat="Server">
    <asp:LoginView ID="LoginViewAnonymous" runat="server">
        <AnonymousTemplate>
        Please register before using this service.
        </AnonymousTemplate>
    </asp:LoginView>                       
</asp:Content>